package ase.assignment.sts.api;

import java.rmi.Remote;
import java.rmi.RemoteException;

import ase.assignment.sts.beans.PortfolioEntity;

public interface PortfolioHandler extends Remote {

	void create(PortfolioEntity entity) throws RemoteException;

	void delete(int porId) throws RemoteException;

	void update(PortfolioEntity entity) throws RemoteException;

	PortfolioEntity findById(int porId) throws RemoteException;

	PortfolioEntity[] getAllPortfolios(String username) throws RemoteException;
}
